<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <title> New Document </title>
    <meta name="Generator" content="NPP-Plugin">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <script src="../jslib/jquery/jquery-2.1.4.min.js"></script>
    <script src="../jslib/jquery/jquery.url.js"></script>
    <script src="../jslib/ukulele/ukulele.min.js"></script>
</head>

<body>
    <div uku-application>
        <label>openid:</label>
        <label>{{myCtrl.openid}}</label>
        <button uku-onclick="">get current user info</button> 
    </div>
</body>
<script>
    function MyController(){
        this.openid = undefined;
        this.getUserInfo = function(){
            alert(this.openid);
        };
    }
    
    
    $(document).ready(function(){
        var uku = new Ukulele();
        var myCtrl = new MyController();
        uku.registerController("myCtrl",myCtrl);       
        myCtrl.openid = jQuery.url.param("openid");
        uku.init();
    });
</script>
</html>